home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / rbsetnv1.zip / EVAL.DOC < prev    next >
Text File  |  1991-01-03  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      EVAL(1)             MS-DOS auxiliary utilities             EVAL(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           eval - evaluate a command after wildcard expansion, command
  10.           and variable substitution
  11.  
  12.      SYNOPSIS
  13.           eval command [argument ... ]
  14.  
  15.      DESCRIPTION
  16.           eval is a utility to execute any given command, after
  17.           performing wildcard expansion, command substitution and
  18.           variable substitution on the arguments before running the
  19.           command.  The command line is iteratively scanned for
  20.           command substitutions in backquotes (`...`) and environment
  21.           variables (%var), and the resulting text used as the
  22.           argument list for the first argument (the command to be
  23.           run). Command substitutions are usually performed by loading
  24.           a shell, which allows for batch files, shell aliases and
  25.           pipelines in addition to executable programs. If the first
  26.           character of the command is '@', the command is exec'ed
  27.           directly (much faster than loading a shell, but only works
  28.           with exe and com files) The magic characters '%','`', and
  29.           '@' are set by #defines in comsub.h so you can change them
  30.           if you don't like them.
  31.  
  32.           When substituting the output of commands, newlines are
  33.           replaced by spaces. Arguments may need to be quoted in order
  34.           that eval will see the % or `...` characters, depending on
  35.           which shell you use.  The 4DOS shell in particular needs to
  36.           have backquotes protected by double quotes.
  37.  
  38.      DIAGNOSTICS
  39.           Diagnostics are printed for the following errors:
  40.           - out of memory
  41.           - command substitution failed (command not found, or line too long)
  42.  
  43.      EXAMPLES
  44.  
  45.      SEE ALSO
  46.           eval, incr, decr, expr
  47.  
  48.      BUGS
  49.  
  50.      AUTHOR
  51.           Richard Brittain (richard@calvin.ee.cornell.edu)
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.